package ru.stool.erp.model.dao.factory;

import ru.stool.erp.model.dao.EmployeeDAO;
import ru.stool.erp.model.dao.factory.impl.HibernateDAOFactory;

public abstract class AbstractDAOFactory {

	public static final int HIBERNATE_DAO_FACTORY=0;
	
	public abstract EmployeeDAO getEmployeeDAO();

	public static AbstractDAOFactory getDAOFactory(int factoryType){
		switch(factoryType){
			case HIBERNATE_DAO_FACTORY: return new HibernateDAOFactory();
			default: 
				return null;
		}
	}
}
